﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace _2021_5_17
{
    #region 结构体作业-结构体
    struct PersonStruct
    {
        public string name;
        public string tel;
        public string address;
    }
    #endregion

    class Program
    {
        static void Main(string[] args)
        {
            #region 结构体作业
            PersonStruct p1 = new PersonStruct();
            p1.name = "张三";
            p1.tel = "6415615";
            p1.address = "hdfjs";

            PersonStruct p2 = p1;
            p2.name = "里斯";

            Console.WriteLine(p1.name + " " + p1.tel + " " + p1.address);

            PersonClass p3 = new PersonClass();
            p3.name = "里斯";
            p3.tel = "54456";
            p3.address = "fksdhf";

            PersonClass p4 = p3;
            p3.name = "李斯";

            Console.WriteLine(p3.name + " " + p3.tel + " " + p3.address);

            Console.WriteLine();
            #endregion

            #region 继承作业
            Student stu = new Student();
            stu.Name = "张三";
            stu.Id = 20456564;
            stu.Sex = '男';
            stu.Grand = 2;
            stu.Major = "计算机科学";
            stu.Tel = "54541858448";
            stu.CardId = "350981546498415";
            stu.PrintInfo();

            Teacher teacher = new Teacher(id:205481,name:"云飞",sex:'男',tel:"151966595633",title:"教授",wageno:"0012",cardID:"352202845618454");
            teacher.PrintInfo();

            Console.WriteLine();
            #endregion

            #region 继承作业2
            Elok elok = new Elok(playerName:"Elok");
            elok.PrintInfo();
            Tyra tyra = new Tyra(playerName: "Tyra");
            tyra.PrintInfo();
            Lukas lukas = new Lukas(playerName:"Lukas");
            lukas.PrintInfo();
            Lofi lofi = new Lofi(playerName:"Lofi");
            lofi.PrintInfo();
            #endregion


        }
    }
    #region 结构体作业-类
    class PersonClass
    {
        public string name;
        public string tel;
        public string address;
    }
    #endregion
}
